# Navigator | Copyright 2013 Team Sass | MIT License | https://github.com/Team-Sass/navigator

task :default => [:test]

task :test do
  require 'fileutils'

  output_dir = 'output'
  FileUtils.mkdir_p output_dir
  ruby 'unit_tests.rb'
  FileUtils.rm_rf output_dir
end

desc 'Compile baseline CSS'
task :compile do
  require 'compass'
  require 'compass/exec'

  Compass.add_configuration 'config.rb'
  Compass.configuration.project_path = Dir.pwd
  # Compile into baseline directory instead of test output directory
  Compass.configuration.css_dir = 'controls'
  Compass.compiler.clean!
  Compass.compiler.run
end
